package com.dc.commons.persistence;

import javax.persistence.MappedSuperclass;

import com.dc.commons.persistence.able.TreeAble;

/*******************************************************************************<P>
 * 文件名: TreeEntity.java <br>
 * 版本: 1.0<br>
 * 描述: 树形结构的父类<br>
 * 版权所有: <br>
 * <P>
 * 创建者: 王建栋 <br>
 * 创建日期: 2016年3月24日 下午2:44:39<br>
 * 修改者: <br>
 * 修改日期: <br>
 * 修改说明: <br>
 ******************************************************************************/
@MappedSuperclass
public abstract class TreeEntity extends BaseEntity implements TreeAble {


	/**
	 * 父节点Key值
	 */
	private String parentKey;
	
	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 代码
	 */
	private String code;
	
	/**
	 * 显示顺序
	 */
	private int displayNo;
	
	/**
	 * 显示级别
	 */
	private int levelNo;
	
	

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#getParentKey()
	 */
	@Override
	public String getParentKey() {
		return this.parentKey;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#setParentKey(java.lang.String)
	 */
	@Override
	public void setParentKey(String parentKey) {
		this.parentKey=parentKey;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#getName()
	 */
	@Override
	public String getName() {
		return this.name;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#setName(java.lang.String)
	 */
	@Override
	public void setName(String name) {
		this.name=name;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#getCode()
	 */
	@Override
	public String getCode() {
		return this.code;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#setCode(java.lang.String)
	 */
	@Override
	public void setCode(String code) {
		this.code=code;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#getDisplayNo()
	 */
	@Override
	public int getDisplayNo() {
		return this.displayNo;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#setDisplayNo(java.lang.String)
	 */
	@Override
	public void setDisplayNo(int displayNo) {
		this.displayNo=displayNo;
	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#setLevelNo(int)
	 */
	@Override
	public void setLevelNo(int levelNo) {
		this.levelNo=levelNo;

	}

	/* (non-Javadoc)
	 * @see com.dc.commons.persistence.able.TreeAble#getLevelNo()
	 */
	@Override
	public int getLevelNo() {
		return this.levelNo;
	}

}
